package com.fingard.dsp.bank.directbank.pab02.Util.api.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;

import java.util.Map;

public class JsonUtils {


	/**
	 * 对MapObject类型数据进行解析
	 * 
	 * @param json
	 *            要解析的json字符串
	 * @return
	 */

	public static Map<String, Object> getMapObj(String json) {
		try {
			return JSON.parseObject(json, new TypeReference<Map<String, Object>>() {
			});
		} catch (Exception e) {
			System.out.println("json解析异常");
			e.printStackTrace();
		}
		return null;
	}

	
}
